package com.wanlian.netty.msg;

import com.wanlian.json.JsonStringUtil;
import com.wanlian.netty.model.ResultInfo;

public class ResultMsg extends BaseMsg {

    private ResultInfo resultInfo;

    public ResultMsg() {
        super();
        this.setType(MsgType.COMMON_ERROR);
    }

    public ResultMsg(String type) {
        super();
        this.setType(type);
    }


    public ResultInfo getResultInfo() {
        return resultInfo;
    }

    public void setResultInfo(ResultInfo resultInfo) {
        this.resultInfo = resultInfo;
        this.setContent(JsonStringUtil.writeValueAsString(this.resultInfo));
    }
}
